From: Catalin Iacob Date: Thu, 23 Mar 2017 17:27:40 +0000 (+0100) Subject: portalHelper: Use the correct enum values X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~380 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a0c31478c0d43363f89db45db12208d51fc69c2e;p=gnome-shell.git portalHelper: Use the correct enum values Without this the tests never succeeded because they were comparing loadEvent to undefined resulting in the icon not changing as it should. https://bugzilla.gnome.org/show_bug.cgi?id=780606 --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index f64cae49b..2928c761a 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -188,9 +188,9 @@ const PortalWindow = new Lang.Class({ }, _onLoadChanged: function(view, loadEvent) { - if (loadEvent == WebKit.LOAD_STARTED) { + if (loadEvent == WebKit.LoadEvent.STARTED) { this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED); - } else if (loadEvent == WebKit.LOAD_COMMITTED) { + } else if (loadEvent == WebKit.LoadEvent.COMMITTED) { let tlsInfo = this._webView.get_tls_info(); let ret = tlsInfo[0]; let flags = tlsInfo[2];